package com.lzh.shijicloudstack.model.entity;


import com.lzh.shijicloudstack.common.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 角色和菜单关联表(SysRoleMenu)表实体类
 *
 * @author makejava
 * @since 2023-12-28 16:14:28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_role_menu")
@Entity
@Table(name = "sys_role_menu", indexes = {})
public class RoleMenu extends BaseEntity {

    /**
     * 角色ID
     */
    @Column(name = "role_id", columnDefinition = "bigint(20) COMMENT '角色ID'", nullable = false)
    private Long roleId;

    /**
     * 菜单ID
     */
    @Column(name = "menu_id", columnDefinition = "bigint(20) COMMENT '菜单ID'", nullable = false)
    private Long menuId;

}
